package com.ricervcvcer.goods.client;

import com.ricervcvcer.common.util.ResultEntity;
import com.ricervcvcer.goods.config.FeignConfig;
import com.ricervcvcer.goods.entity.TbCategory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "category-server", configuration = FeignConfig.class)
public interface CategoryClient {
    @GetMapping("category/byId/{id}")
    ResultEntity<TbCategory> getById(@PathVariable("id") Long id);
}
